
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>gitbook安装 · Shenge GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Shenge">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="gitbook安装前置条件.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    gitbook简单介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    gitbook安装
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="gitbook安装前置条件.html">
            
                <a href="gitbook安装前置条件.html">
            
                    
                    gitbook安装前置条件
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.2" data-path="gitbook安装.html">
            
                <a href="gitbook安装.html">
            
                    
                    gitbook安装
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    gitbook配置解析
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../gitbook配置解析/summary解析.html">
            
                <a href="../gitbook配置解析/summary解析.html">
            
                    
                    SUMMARY,md解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../gitbook配置解析/bookjson解析.html">
            
                <a href="../gitbook配置解析/bookjson解析.html">
            
                    
                    book.json解析
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    gitbook配置Gitee静态网页
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../配置Gitee静态网页/配置Gitee静态网页.html">
            
                <a href="../配置Gitee静态网页/配置Gitee静态网页.html">
            
                    
                    配置Gitee静态网页
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >gitbook安装</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="gitbook&#x5B89;&#x88C5;"><a name="gitbook&#x5B89;&#x88C5;" class="plugin-anchor" href="#gitbook&#x5B89;&#x88C5;"><i class="fa fa-link" aria-hidden="true"></i></a>GitBook&#x5B89;&#x88C5;</h3>
<h4 id="&#x7EC8;&#x7AEF;&#x8FD0;&#x884C;&#x547D;&#x4EE4;"><a name="&#x7EC8;&#x7AEF;&#x8FD0;&#x884C;&#x547D;&#x4EE4;" class="plugin-anchor" href="#&#x7EC8;&#x7AEF;&#x8FD0;&#x884C;&#x547D;&#x4EE4;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7EC8;&#x7AEF;&#x8FD0;&#x884C;&#x547D;&#x4EE4;</h4>
<pre><code class="lang-shell">$ sudo npm install gitbook-cli -g
</code></pre>
<h4 id="&#x73A9;&#x8F6C;gitbook"><a name="&#x73A9;&#x8F6C;gitbook" class="plugin-anchor" href="#&#x73A9;&#x8F6C;gitbook"><i class="fa fa-link" aria-hidden="true"></i></a>&#x73A9;&#x8F6C;GitBook</h4>
<ol>
<li><p>&#x65B0;&#x5EFA;&#x6587;&#x4EF6;&#x5939;shenge-gitbook</p>
<pre><code class="lang-shell">mkdir shenge-gitbook
</code></pre>
</li>
<li><p>&#x8FDB;&#x5165;mybook&#x521D;&#x59CB;&#x5316;gitbook</p>
<pre><code class="lang-shell">cd shenge-gitbook
gitbook init
</code></pre>
</li>
<li><p>&#x751F;&#x6210;&#x9759;&#x6001;&#x6587;&#x4EF6;</p>
<pre><code class="lang-shell">gitbook build
</code></pre>
<p>&#x5F53;&#x524D;&#x76EE;&#x5F55;&#x4E0B;&#x4F1A;&#x751F;&#x6210;_book&#x76EE;&#x5F55;</p>
</li>
<li><p>&#x542F;&#x52A8;web&#x670D;&#x52A1;</p>
<pre><code class="lang-bash">gitbook serve
</code></pre>
<p>&#x7136;&#x540E;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x5730;&#x5740;&#x680F;&#x4E2D;&#x8F93;&#x5165; <code>http://localhost:4000</code> &#x4FBF;&#x53EF;&#x9884;&#x89C8;&#x4E66;&#x7C4D;</p>
</li>
</ol>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="gitbook安装前置条件.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: gitbook安装前置条件">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"gitbook安装","level":"1.2.2","depth":2,"next":{"title":"gitbook配置解析","level":"1.3","depth":1,"ref":"","articles":[{"title":"SUMMARY,md解析","level":"1.3.1","depth":2,"path":"gitbook配置解析/summary解析.md","ref":"gitbook配置解析/summary解析.md","articles":[]},{"title":"book.json解析","level":"1.3.2","depth":2,"path":"gitbook配置解析/bookjson解析.md","ref":"gitbook配置解析/bookjson解析.md","articles":[]}]},"previous":{"title":"gitbook安装前置条件","level":"1.2.1","depth":2,"path":"gitbook安装/gitbook安装前置条件.md","ref":"gitbook安装/gitbook安装前置条件.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-sharing","splitter","anchors","sharing-plus","-anchor-navigation-ex","livereload"],"styles":{"website":"./styles/website.css"},"pluginsConfig":{"livereload":{},"splitter":{},"search":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"showLevel":false},"sharing":{"qq":true,"all":["qq"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{}},"theme":"default","author":"Shenge","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Shenge GitBook","language":"zh-hans","gitbook":"3.2.3","description":"Learn GitBook"},"file":{"path":"gitbook安装/gitbook安装.md","mtime":"2020-11-24T05:58:34.058Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-11-24T06:38:38.433Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

